package com.web.mySecurity;

import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;

/**
 * Created with IntelliJ IDEA.
 * User: lxf
 * Date: 2016/9/2
 * Time: 15:40
 * To change this template use Editor | File and Code Templates.
 */
public class MyUsernamePasswordAuthenticationToken extends UsernamePasswordAuthenticationToken {

    private String validCode;

    public MyUsernamePasswordAuthenticationToken(String principal, String credentials, String validCode) {
        super(principal, credentials);
        this.validCode = validCode;
    }

    public String getValidCode() {
        return validCode;
    }

    public void setValidCode(String validCode) {
        this.validCode = validCode;
    }
}
